package mww.javabean.service;

import java.util.List;
import java.util.Map;

import mww.common.ServiceException;
import mww.javabean.entity.Teacher;

public interface TeacherService {
	public void addTeacher(Teacher teacher) throws ServiceException;// 添加教师信息

	public void delTeacher(String teacherNo) throws ServiceException;// 删除教师信息

	public void updateTeacher(Teacher teacher) throws ServiceException;// 修改教师信息

	public Map findAllTeacher(Integer curPage) throws ServiceException;// 查询所有教师带分页

	public List findAllTeacher() throws ServiceException;// 列表显示所有教师列表

	public Map findAllTeacherByMostCon(Teacher condition, Integer curPage) throws ServiceException;// 按条件查询教师-带分页

	public List findAllTeacherByMostCon(Teacher condition) throws ServiceException;// 按条件查询教师

	public Teacher findTeacherByTeacherNo(String teacherNo) throws ServiceException;// 根据教师编号查询教师

	public int getTeacherTotality() throws ServiceException;// 获取教师总数

	public void updatePwd(String loginName, String newPassword) throws ServiceException;//修改秘密
	
}
